<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>


<%
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

	<title>后台修改新闻种类页面</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<SCRIPT language=JavaScript src="<%=path%>/js/meizzDate.js"></SCRIPT>
	<link rel="stylesheet" type="text/css"
		href="${pageContext.request.contextPath }/css/style.css">
	<link href="${pageContext.request.contextPath }/css/addChance.css"
		rel="stylesheet" type="text/css">
	<script src='${pageContext.request.contextPath }/dwr/engine.js'></script>
	<script src='${pageContext.request.contextPath }/dwr/util.js'></script>
	<script
		src='${pageContext.request.contextPath }/dwr/interface/DepartBiz.js'></script>
<script type="text/javascript"
		src="<%=path %>/js/validation-framework.js"></script>
	<style type="text/css">
	
<!--
.select * {
  margin: 0;
  padding: 0;
}
.select {
  border:1px solid #cccccc;
  float: left;
  display: inline;
  }
.select div {
  border:1px solid #f9f9f9;
  float: left;
}
/* 子选择器，在FF等非IE浏览器中识别 */
.select>div {
  width:120px;
  height: 17px;
  overflow:hidden;
  }
  
/* 通配选择符，只在IE浏览器中识别 */
* html .select div select {
  display:block;
  float: left;
  margin: -2px;
}
.select div>select {
  display:block;
  width:124px;
  float:none;
  margin: -2px;
  padding: 0px;
}
.select:hover {
  border:1px solid #666666; //鼠标移上的效果 
}
.select select>option {
  text-indent: 2px; //option在FF等非IE浏览器缩进2px
}
-->
</style>
<script src='${pageContext.request.contextPath }/dwr/engine.js'></script>
	<script src='${pageContext.request.contextPath }/dwr/util.js'></script>
	<script type='text/javascript' src='/busManage/dwr/interface/checkName.js'></script>

	<script language=javascript>
		function findNameNotExit()
		{
			
			var name = document.getElementById('busType.typeName').value;
			checkName.checkBusTypeName(name,0,NameNotExit);
		}
		function NameNotExit(result)
		{
			if(result)	
			{
				alert("对不起该公交类型已经存在!");
				 document.getElementById("busType.typeName").value="";
				 document.getElementById("busType.typeName").focus();
				 return false;
			}
		}
	</script>
	
	<link href="${pageContext.request.contextPath }/css/Admin.css"
		rel="stylesheet" type="text/css">

</head>

<body>
	<table width="100%" border="0" align="left" cellpadding="0"
		cellspacing="0" bordercolor="#E2E2E1" bgcolor="#FFFFFF">
		<tr>
			<td width="100%" valign="top">
				<table width="100%" border="0" cellpadding="0" cellspacing="0"
					background="">
					<tr>
						<TD width="2%" height=33>
							<DIV align=center>
								<IMG src="<%=path%>/images/sy.gif">
							</DIV>
						</TD>
						<td class="place" colspan="4">
							系统管理&gt;新闻种类管理&gt;修改
						</td>
					</tr>
					<tr>
				</table>
			<td>
		</tr>
		<tr>
			<td>
				<br>
				<s:form method="post" id="addBusType" action="doUpdateNewsTypeAction.action" theme="simple">
					<table width="100%" border="0" cellpadding="6" cellspacing="1"
						bgcolor="#C0CCDD" id="content">
						<tr class="top">
							<td height="25" align="center">
								<div align="right">
									<font size=+1><b>基本信息</b>
									</font>
								</div>
								<br>
							</td>
							<s:hidden name="newsType.pid" />
							<td height="25" align="left">

								<br>
							</td>
						</tr>
						<tr>
							<td width="25%">
								<div align="right">
									种类名:
								</div>
							</td>
							<td class="gray">
								<s:textfield  id="newsType.newsType"  name="newsType.newsType" size="30"
									maxlength="12" cssClass="FormBase"
									onfocus="this.className='FormFocus';"
									onblur="this.className='FormBase';" 
									onchange="findNameNotExit()"	/>
								<span class="red" id="dictType">*</span>
								<br>
							</td>
						</tr>
                        <tr>
							<td width="25%">
								<div align="right">
									优先级:
								</div>
							</td>
							<td class="gray">
									<s:select name="newsType.OrderNumber" cssClass="FormBase"
										list="#{'1':'1','2':'2','3':'3','4':'4','5':'5','6':'6','7':'7','8':'8','9':'9','10':'10'}" />
								<span class="red" id="dictType">*</span>
								<br>
							</td>
						</tr>
						<tr>
							<td class="gray" colspan=2 align="center">
								<input type="submit" name="Submit" value="修改" class="anybutton" />
								<input type="reset" name="Submit2" value="重填" class="anybutton" />
								<input type="button" name="stus" value="返回" class="anybutton"
									onClick="javascript:history.go(-1);" />
								<br>
							</td>
						</tr>
					</table>
				</s:form>
			</td>
		</tr>
	</table>

</body>
</html>
